import axios from '@/utils/requests';

export function page(params) {
    return axios.get('/admin/page', { params: params })
}
export function save(data) {
    return axios.post('/admin', data);
}
export function removeByIds(ids) {

    console.log(ids);
    return axios.delete(`/admin/${ids}`);
}
export function login(admin) {
    return axios.post('/admin/login', admin);
}
export function logout() {
    return axios.post('/admin/logout');
}

export function sendMsg(addr) {
    return axios.post('/admin/sendMessage', { adminEmail: addr });
}

export function register(admin) {
    return axios.post('/admin/register', admin);
}
